Skip to content

haskell: load the mingw cc toolchain rules from rules_cc on Bazel 9 (closes #8969) - #8976

Merged
TrapsterDK merged 1 commit into
mainfrom
haskell-mingw-cc-load-8969
Nov 7, 2026
Merged

TrapsterDK merged 1 commit into
mainfrom
haskell-mingw-cc-load-8969

Conversation

@TrapsterDK

Copy link
Copy Markdown
Collaborator

Closes #8969
Part of #8733 (the msvc clang_tidy/clang_syntax real_result targets still need a green Windows run, which this PR's evidence run provides).

What changed

Tests

  • tools/dx test //haskell/tests/mingw_cc:all //haskell/toolchain:all //patches/rules_haskell:all: 2 tests pass.
  • Without the patch, //haskell/tests/mingw_cc:all fails to load with Error in rule: at index 0 of provides, got element of type NoneType, want Provider, the same error as evidence run 42309468960.
  • buildifier --mode=check --lint=warn is clean on the changed files.
  • MODULE.bazel.lock is unchanged.
  • Not run: tools/dx check --apply failed while building quality tools (Failed to fetch blobs because of a remote cache error, still failing with --remote_cache= --noremote_accept_cached). --affected also could not run because the shared clone's origin/HEAD points at a nonexistent origin/master. Instead I ran tests on the explicit targets above. Nested-Bazel and consumer tests were not run locally; CI covers them.

Evidence

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hzpb4qWNZKpDCrwUz7

…loses #8969)

The Windows GHC repo loaded @rules_cc//cc:cc_toolchain.bzl, which does not
exist in rules_cc 0.2.27, and rules_haskell's cc_toolchain_config used the
native CcToolchainConfigInfo global, which is None under Bazel 9. Load
cc_toolchain from cc/toolchains, patch rules_haskell to load the provider
from rules_cc (tweag/rules_haskell#2484), and add a Linux build test that
uses the same loads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hzpb4qWNZKpDCrwUz7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant